CREATE TABLE [dbo].[Deposit]
(
[Id] [int] NOT NULL,
[ReaderId] [int] NULL,
[Amout] [float] NULL,
[Note] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ByEmployeeId] [int] NULL,
[Status] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[Deposit] ADD CONSTRAINT [PK_Deposit] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Deposit] ADD CONSTRAINT [FK_Deposit_Employee] FOREIGN KEY ([ByEmployeeId]) REFERENCES [dbo].[Employee] ([Id])
GO
ALTER TABLE [dbo].[Deposit] ADD CONSTRAINT [FK_Deposit_Reader] FOREIGN KEY ([ReaderId]) REFERENCES [dbo].[Reader] ([Id])
GO
